@W-22438536 WIP - Auth commands#1667
Conversation
Updated prompts and examples to clarify access token retrieval for an org.
jshackell-sfdc
left a comment
There was a problem hiding this comment.
@iowillhoit , see my questions, and possible suggestions.
|
|
||
| # description | ||
|
|
||
| Passwords are only available for orgs where a password was previously generated, such as by running "sf org generate password" or "sf org create user". Because passwords are sensitive credentials, this command prompts for confirmation before revealing it. Skip confirmation by specifying either the --no-prompt or --json flag. |
There was a problem hiding this comment.
I DM'd you about this, but I'll ask here too. Is the idea that this CLI command can be used to show only the passwords that were generated in the DX project using a CLI command, such as org generate password or org create user? In other words, if I create a user/password in Setup in the org, that password WON'T be showable with this command? If so, how about this description:
---start---
This command shows only passwords that were generated locally in your DX project with either the org generate password or org create user CLI command. If you generated a password for a user in Setup in your org, you can't show it with this command.
Because passwords are sensitive credentials, this command prompts for confirmation before revealing it. Skip confirmation by specifying either the --no-prompt or --json flag.
---end---
There was a problem hiding this comment.
That's correct, if you created a user/pw in Setup and then authed to it locally, the pw would not be stored locally.
Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com>
What does this PR do?
sf org auth show-access-tokensf org auth show-sfdx-auth-urlsf org auth show-user-passwordThese commands include confirmation prompts (with 30s timeout) to reduce accidental credential exposure in agent/CI logs. The
--no-promptand--jsonflags bypass the prompt but still emit a warning.What issues does this PR fix or reference?
@W-22438536@